import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { BookController } from './controllers/book.controller'
import { BookTagController } from './controllers/book-tag.controller'
import { BookEntity } from './entities/book.entity'
import { BookTagEntity } from './entities/book-tag.entity'
import { BookService } from './services/book.service'
import { BookTagService } from './services/book-tag.service'

@Module({
  imports: [
    TypeOrmModule.forFeature([BookEntity, BookTagEntity]),
  ],
  controllers: [BookController, BookTagController],
  providers: [BookService, BookTagService],
  exports: [BookService, BookTagService],
})
export class BookModule {}
